//先引入 mockjs 模块
import Mock from "mockjs";

//把 JSON 数据格式引入进来
//webpack 默认对外暴露的有：图片、JSON格式的数据
import banner from "./banner.json";
import floor from "./floor.json";

//mock 数据：第一个参数是请求地址URL，第二个参数是请求的数据
Mock.mock("/mock/banner", { code: 200, data: banner });//模拟首页轮播图数据
Mock.mock("/mock/floor", { code: 200, data: floor });//模拟楼层数据